package com.wn.demo01;

/**
 * @author yellow Docter
 * @date 2024 -06-17
 * @desc
 */
public class Demo04 {

    public static void main(String[] args) {

        Demo04 demo04 = new Demo04();

//        demo04.jiaFa((x,y)->{
//            return x + y;
//        },10,11);

        demo04.jiaFa((x,y)->{
            return x - y;
        },10,11);

    }

    public void jiaFa(MyMath<Integer,Integer> myMath,Integer a,Integer b){
        Integer math = myMath.math(a, b);
        System.out.println("Demo04.jiaFa"+math);
    }

    public void jiaFa1(Integer a,Integer b){
        int math = a + b;
        System.out.println("Demo04.jiaFa"+math);
    }

    public void jiaFa2(Integer a,Integer b){
        int math = a - b;
        System.out.println("Demo04.jiaFa"+math);
    }

}
